// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  testWidgets('测试 MyWidget', (WidgetTester tester) async {
    print("sdsdsfsdfdsfds");
    // 构建 MyWidget
    await tester.pumpWidget(MaterialApp(
      home: Container(
        color: Colors.red,
      ),
    ));

    // // 查找文本
    // expect(find.text('Hello, World!'), findsOneWidget);

    // // 查找按钮并点击
    // await tester.tap(find.byType(ElevatedButton));
    // await tester.pump(); // 重建 Widget

    // // 验证文本变化
    // expect(find.text('Button Clicked!'), findsOneWidget);
  });
}
